﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

using ManageStore.Forms;
using ManageStore.Config;
using Controller;

namespace ManageStore
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.CurrentCulture = new System.Globalization.CultureInfo("vi-VN");
            ManageStoreConfig.Default.UserId = 1;
            ManageStoreConfig.Default.UserName = "admin";
            ControllerConfig.Default.UserName = "admin";
            Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
            Application.Run(new FrmMain());
        }

        static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
        {
            //throw new NotImplementedException();
        }
    }
}
